package com.sys.controller;

import com.sys.pojo.Employee;
import com.sys.pojo.Result;
import com.sys.service.EmpService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("/emp")
public class EmployeeController {
    @Resource
    private EmpService empService;

    @GetMapping("/login")
    public List<Employee> login() {
        log.info("登录。。。");
        return empService.login();
    }
}
